<html>
<head>
  <title>{% block title %}Greetings!{% endblock %}</title>
</head>
<body>
{% block body %}
<ul>
{% if greetings %}
  {% for greeting in greetings %}
    <li>
    {{ greeting.id }} : {{ greeting.greeting_text }} | {{ greeting.create_time|date:"Y-m-d H:i:s" }}
    || {{ greeting.greeting_text|leetest:"P1" }}
  {% endfor %}
{% else %}
    <li>No greetings!
{% endif %}
</ul>
{% endblock %}
<p><a href="{% url action="create" %}">New greeting...</a></p>

<form method="post" action="{% url action="goodbye" %}">
    Delete:
    <select name="greeting_id">
    {% for greeting in greetings %}
    <option value="{{ greeting.id }}">{{ greeting.greeting_text }}
    {% endfor %}
    </select>
    <input type="submit">
</form>
</body></html>
